package com.jackrain.nea.conf;

/**
 * Created by jackrain on 16/8/2.
 */

import com.jackrain.nea.config.PropertiesConf;
import com.jackrain.nea.mq.MQAspect;
import com.jackrain.nea.mq.MQStartupRunner;
import com.jackrain.nea.mq.OrderMQStartupRunner;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jackrain
 */
@Slf4j
@Configuration
public class MQStartConfig {

    @Autowired
    private PropertiesConf pconf;

    @Bean
    public MQAspect mqAspect() {
        return new MQAspect();
    }

    @Bean
    public MQStartupRunner mqStartupRunner() {
        return new MQStartupRunner();
    }


    @Bean
    public OrderMQStartupRunner orderMQStartupRunner() {
        return new OrderMQStartupRunner();
    }


}
